//
//  HXFileTableViewCell.m
//  KD
//
//  Created by ifly on 16/5/13.
//  Copyright © 2016年 Whx. All rights reserved.
//

#import "HXFileTableViewCell.h"

@interface HXFileTableViewCell()
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *dateLabel;
@property (weak, nonatomic) IBOutlet UIImageView *redPicture;

@end

@implementation HXFileTableViewCell

- (void)setData:(HXFileListModel *)data{
    _data = data;
    self.nameLabel.text = data.FileTitle;
    self.dateLabel.text = data.Register;
    self.redPicture.tag = [data.IsRed integerValue];
    if (self.redPicture.tag == 1) {
        self.redPicture.image = [UIImage imageNamed:@"filehi"];
    }else{
        self.redPicture.image = [UIImage imageNamed:@"file"];
    }
}
@end
